<?php
/**
 * Created by PhpStorm.
 * User: man0sions
 * Date: 16/8/30
 * Time: 下午4:25
 */

namespace src\Factory\SpiderDataFactory;


use src\Factory\SpiderDataFactory;

/**
 * 格式化i 奇艺数据
 * Class IqiyiSpiderData
 * @package src\Factory\SpiderDataFactory
 * @author Luficer.p <81434146@qq.com>
 */

class IqiyiSpiderData extends SpiderDataFactory
{
    /**
     * @param \stdClass $class
     * @return mixed
     */
    public function createPlaylistData(\stdClass $class)
    {
        return $this->formatStrategy->formatPlaylist($class);
    }

    /**
     * @param \stdClass $class
     * @return mixed
     */
    public function createVideoData(\stdClass $class)
    {
        return $this->formatStrategy->formatVideo($class);
    }
}